/* 首页样式 */
.homePage {
  padding: 24px;
  min-height: 100vh;
  background-color: #f5f5f5;
}

/* 页面头部 */
.pageHeader {
  margin-bottom: 24px;
  text-align: center;
}

.pageTitle {
  margin-bottom: 8px !important;
  color: #1890ff;
}

/* 统计卡片行 */
.statisticsRow {
  margin-bottom: 24px;
}

.statisticCard {
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.statisticCard:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* 内容区域 */
.contentRow {
  margin-bottom: 24px;
}

/* 卡片标题 */
.cardTitle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

/* 今日课程卡片 */
.todayScheduleCard {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  height: 400px;
}

.todayScheduleCard .ant-card-body {
  padding: 16px;
  height: calc(100% - 57px);
  overflow-y: auto;
}

/* 即将到来课程卡片 */
.upcomingScheduleCard {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  height: 400px;
}

.upcomingScheduleCard .ant-card-body {
  padding: 16px;
  height: calc(100% - 57px);
  overflow-y: auto;
}

/* 课程列表 */
.scheduleList {
  height: 100%;
}

.scheduleList .ant-list-item {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.scheduleList .ant-list-item:hover {
  background-color: #f5f5f5;
  border-radius: 4px;
}

.scheduleList .ant-list-item:last-child {
  border-bottom: none;
}

/* 课程项内容 */
.scheduleItem {
  width: 100%;
}

.scheduleItemContent {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.scheduleTime {
  font-size: 14px;
  color: #1890ff;
}

.scheduleDate {
  font-size: 12px;
  color: #666;
  margin-bottom: 2px;
}

.scheduleInfo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.courseName {
  font-size: 14px;
  font-weight: 500;
  color: #262626;
}

.studentName {
  font-size: 12px;
  color: #8c8c8c;
}

.location {
  font-size: 12px;
  color: #8c8c8c;
  margin-top: 2px;
}

/* 快速操作卡片 */
.quickActionsCard {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.quickActionButton {
  height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.quickActionButton:hover {
  border-color: #1890ff;
  color: #1890ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.2);
}

.quickActionButton .anticon {
  font-size: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .homePage {
    padding: 16px;
  }
  
  .pageHeader {
    margin-bottom: 16px;
  }
  
  .statisticsRow {
    margin-bottom: 16px;
  }
  
  .contentRow {
    margin-bottom: 16px;
  }
  
  .todayScheduleCard,
  .upcomingScheduleCard {
    height: 300px;
  }
  
  .quickActionButton {
    height: 50px;
  }
  
  .quickActionButton .anticon {
    font-size: 16px;
  }
  
  .scheduleItemContent {
    gap: 2px;
  }
  
  .courseName {
    font-size: 13px;
  }
  
  .studentName {
    font-size: 11px;
  }
}

@media (max-width: 576px) {
  .homePage {
    padding: 12px;
  }
  
  .statisticCard {
    margin-bottom: 8px;
  }
  
  .todayScheduleCard,
  .upcomingScheduleCard {
    height: 250px;
  }
  
  .quickActionButton {
    height: 45px;
    font-size: 12px;
  }
  
  .quickActionButton .anticon {
    font-size: 14px;
  }
}

/* 深色主题支持 */
@media (prefers-color-scheme: dark) {
  .homePage {
    background-color: #141414;
  }
  
  .pageTitle {
    color: #177ddc;
  }
  
  .statisticCard,
  .todayScheduleCard,
  .upcomingScheduleCard,
  .quickActionsCard {
    background-color: #1f1f1f;
    border-color: #303030;
  }
  
  .scheduleList .ant-list-item:hover {
    background-color: #262626;
  }
  
  .scheduleList .ant-list-item {
    border-bottom-color: #303030;
  }
  
  .courseName {
    color: #ffffff;
  }
  
  .quickActionButton:hover {
    border-color: #177ddc;
    color: #177ddc;
    box-shadow: 0 4px 12px rgba(23, 125, 220, 0.2);
  }
}